package com.dreamwhale.machinery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 资料库收藏表
 * </p>
 *
 * @author Author
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vip_article_collect")
public class VipArticleCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 资料库id
     */
    private Integer articleId;

    /**
     * 添加时间
     */
    private LocalDateTime createTime;

    /**
     * 标题
     */
    @TableField(exist = false)
    private String title;

    /**
     * 图片
     */
    @TableField(exist = false)
    private String image;

    /**
     * 文档
     */
    @TableField(exist = false)
    private String words;


    /**
     * 文档名称
     */
    @TableField(exist = false)
    private String wordsName;

    /**
     * 正文
     */
    @TableField(exist = false)
    private String content;

    /**
     * 资料库id
     */
    @TableField(exist = false)
    private Integer vipArticlId;

    @TableField(exist = false)
    private String classifyName;

    @TableField(exist = false)
    private Integer vipLv;
}
